Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Fix checkpatch #497

Merged
merged 1 commit into from
Jul 10, 2023
Merged

CI: Fix checkpatch #497

merged 1 commit into from
Jul 10, 2023

Conversation

arnopo
Copy link
Collaborator

@arnopo arnopo commented Jul 5, 2023

The CI does not consider "check" reported by checkpatch. This commit fixes it by:

  • rebasing check_compliance.py compliance.yml to integrate Zephyr updates,
  • add detection of the "check" in the report.

An exemple of the result is available here: arnopo#25

@arnopo arnopo linked an issue Jul 5, 2023 that may be closed by this pull request
Copy link
Collaborator

@danmilea danmilea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a single quality of life comment which is not mandatory. Otherwise, good to merge.

- name: Install python dependencies
run: |
pip3 install setuptools
pip3 install junitparser==1.6.3 gitlint codespell
pip3 install junitparser gitlint codespell lxml
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not mandatory: add python-magic to the list of python packages explicitly installed as a reference for check_compliance.py users. I don't think this happens on ubuntu-latest, so this action might work on github.

In a clean puthon3.11 virtual environment python-magic is also required, otherwise check_compliance.py fails.
./scripts/ci/check_compliance.py", line 20, in
import magic
ModuleNotFoundError: No module named 'magic'

Otherwise, good to merge.

The CI does not consider "check" reported by checkpatch.
This commit fixes it by:

- rebasing check_compliance.py compliance.yml to integrate Zephyr updates,
- add detection of the "check" in the report.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
@danmilea
Copy link
Collaborator

Thanks for the update @arnopo . Good to merge.

@arnopo arnopo merged commit dcc21e6 into OpenAMP:main Jul 10, 2023
2 checks passed
@arnopo arnopo deleted the Fix_checkpatch_CI branch September 14, 2023 13:17
@arnopo arnopo added this to the Release V2023.10 milestone Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: checkpatch compliance test does not work properly
2 participants